package com.maple.valid.controller;

import com.alibaba.fastjson.JSONObject;
import com.maple.common.http.Resp;
import com.maple.valid.entity.RelationAddVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * <p></p>
 *
 * @author maple
 */
@RestController
@Slf4j
@RequestMapping("/relation")
public class RelationController {

    @PostMapping("/add")
    public Resp<Boolean> add(@Valid @RequestBody RelationAddVo relationDataVo) {
        log.info("relationOrder param:" + JSONObject.toJSONString(relationDataVo));
        return Resp.success();
    }

}
